<?php

namespace App\Http\Validators\V1;

use App\Constants\CashConstant;
use App\Http\Validators\AbstractValidator;

/*
 *
 * 验证接口
 */

class InviteValidator extends AbstractValidator
{

    /**
     * Validation rules
     *
     * @var Array
     */
    // 要验证的字段
    protected $rules = array(
        'invitePhone'   => ['required','regex:/^(1(([345][0-9])|[7|8][0123456789]))\d{8}$/'],
    );

    /**
     * Validation messages
     *
     * @var Array
     */
    //自定义错误信息
    protected $messages = array(
        'invitePhone.required' => '手机号必填',
//        'invitePhone.integer' => '手机号必须为整数',
        'invitePhone.regex' => '手机号格式不正确，请重新输入',
    );




}
